package com.forekonw.demotest1103wan02;

public class PayrollSystem {
    private Employee[] emp;

    public Employee[] getEmp() {
        return emp;
    }

    public void setEmp(Employee[] emp) {
        this.emp = emp;
    }

    public static void main(String[] args) {
        PayrollSystem p = new PayrollSystem();
        Employee[] e = new Employee[2];
        MyDate q1 = new MyDate(1995,3,4);
        MyDate q2 = new MyDate(1998,12,27);
        SalariedEmployee s = new SalariedEmployee();
        HourlyEmployee h = new HourlyEmployee();
        s.setBirthday(q1.toDateString());
        h.setBirthday(q2.toDateString());
        e[0] = new SalariedEmployee("tom",10,s.getBirthday());
        e[1] = new HourlyEmployee("tony",20,h.getBirthday());
        p.setEmp(e);
        Employee[] emp = p.getEmp();
        for (int i =0 ;i<emp.length;i++){
            if (q1.getMonth()==11){
                
            }
        }
    }
}
